Xbasic

A5_Encrypt_Binary Function

Syntax

Encoded_Data as B = a5_encrypt_binary(B Source ,C Key [,C Algorithm [,B Initializer ]])

Arguments

Encoded_Data

The encoded data.

Source

The data to be encoded.

Key

The text used to decode SourceString.

Algorithm

Optional. Default = "Blowfish". Refer to Encryption Algorithms.

Initializer

Optional. Additional information to be provided by advanced users depending on the algorithm they use. Refer to the OpenSSL site at www.openssl.org for more information.

Description

Encrypts a binary object and returns the binary result. The A5_Encrypt_String() function encodes a character string.

Example

? a5_encrypt_binary("alpha software", "abcdef")
= 0000 : 60 7f e1 1f f6 60 ff 41 32 ee eb f1 ef 7e 41 00 
0010 : ae 0e 81 47 25 08 04 45

See Also